<template>
  <footer>
    <!-- 点击跳转主页 -->
    <router-link to="/home"
      ><i class="iconfont icon-logo-dark1"></i>
      <p>发现</p>
    </router-link>
    <!-- 点击跳转播客 -->
    <router-link to="/pd"
      ><i class="iconfont icon-radioguangbo"></i>
      <p>播客</p>
    </router-link>
    <!-- 点击跳转我的 -->
    <router-link to="/my"
      ><i class="iconfont icon-yinyue"></i>
      <p>我的</p>
    </router-link>
    <!-- 点击跳转关注 -->
    <router-link to="/at"
      ><i class="iconfont icon-guanzhuzhe"></i>
      <p>关注</p>
    </router-link>
    <!-- 点击跳转云村 -->
    <router-link to="/cv"
      ><i class="iconfont icon-m"></i>
      <p>云村</p>
    </router-link>
  </footer>
</template>

<script>
export default {
  components: {},
};
</script>

<style scoped>
footer {
  display: flex;
  z-index: 9998;
  width: 100%;
  height: 1.34rem;
  border-top: 1px solid #f0f0f0;
  position: fixed;
  bottom: 0;
  background-color: #ffffff;
}
footer a {
  flex: 1;
  color: #a7a7a7;
  display: flex;
  align-content: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  text-align: center;
}
a i {
  display: inline-block;
  padding: 0.1rem;
  width: 0.35rem;
  height: 0.35rem;
}
a i::before {
  font-size: 0.35rem;
  display: inline-block;
}
.router-link-active p {
  color: #fe3a3b;
}
.router-link-active i {
  background-color: #fe3a3b;
  overflow: hidden;
  border-radius: 50%;
}

.router-link-active i::before {
  color: white;
}
</style>